<template>
    <div class="jobcommon zhiweimiaoshu EditResumeInfo">
        <div class="popBody">
            <div class="backnavjob">
                <h1 @click="closejibenxinxi('close')">
                    <img
                        data-v-61dd7a3d=""
                        src="../../assets//newimg/index/icon_right_h.png"
                        alt=""
                    />
                </h1>
                <h2>
                    <span>薪资待遇</span>
                </h2>
                <h3></h3>
            </div>
        </div>
        <div class="popBody">
            <div class="split-block"></div>
            <div class="list_height plist-txt notarrow">
                <div class="pic"></div>
                <div class="tit font14">最低薪资(元/月)</div>
                <div class="describe font12">
                    <input
                        type="text"
                        id="tpl_minwage"
                        placeholder="最低薪资"
                        value=""
                        class="font13"
                        v-model="nminwage"
                    />
                </div>
                <div class="arrow"></div>
                <div class="clear"></div>
            </div>
            <div class="list_height plist-txt notarrow">
                <div class="pic"></div>
                <div class="tit font14">最高薪资(元/月)</div>
                <div class="describe font12">
                    <input
                        type="text"
                        id="tpl_maxwage"
                        placeholder="最高薪资"
                        value=""
                        class="font13"
                        v-model="nmaxwage"
                    />
                </div>
                <div class="arrow"></div>
                <div class="clear"></div>
            </div>
            <div class="list_height plist-txt notarrow">
                <div class="pic"></div>
                <div class="tit font14">面议</div>
                <div class="describe font12">
                    <div
                        class="d-switch js-d-switch"
                        :class="{ active: isface }"
                        @click="changemoney"
                    ></div>
                </div>
                <div class="arrow"></div>
                <div class="clear"></div>
            </div>
            <div class="split-block"></div>
        </div>
        <div class="j_newbutton">
            <div class="j_newbtn" @click="closejibenxinxi()">保存</div>
        </div>
    </div>
</template>

<script>
// import { axiosPost } from '../../axios';
// import { Toast } from 'vant';
export default {
    name: '',
    props: ['minwage', 'maxwage'],
    data() {
        return {
            nminwage: '',
            nmaxwage: '',
            isface: false,
        };
    },
    computed: {},
    mounted() {
        this.nminwage = this.minwage;
        this.nmaxwage = this.maxwage;
    },
    methods: {
        changemoney() {
            this.isface = !this.isface;
            if (this.isface) {
                this.nminwage = 0;
                this.nmaxwage = 0;
            } else {
                this.nminwage = this.minwage;
                this.nmaxwage = this.maxwage;
            }
        },
        closejibenxinxi(type) {
            if (type) {
                this.$emit('closeProps', { type: 1, key: false });
                return;
            }
            this.$emit('closeProps', {
                type: 1,
                key: true,
                data: {
                    minwage: this.nminwage,
                    maxwage: this.nmaxwage,
                },
            });
        },
    },
};
</script>

<style lang="less" scope></style>
